<!DOCTYPE html>
<html>
    <head>
        <script src="vue.js"></script>
    </head>
    <body>
        <div id="app">
            {{msg}}
        </div>
        <script>
           Vue.mixin({
               created(){
                   console.log('这是通过混入的created钩子函数');
                   var myOption = this.$options.myOption
                   if(myOption){
                       console.log(myOption.toUpperCase())
                   }
               },
               data:{
                   msg:'text'
               }
           })
           var vm = new Vue({
               created(){
                   console.log('这是Vue实例中的created钩子函数')
               },
               myOption:'hello vue!',
               el:'#app'
           })
        </script>
    </body>

</html>